-- GENERATED SPELL FOR [Twilight Firesworn] --


function spell0_25863(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25863', 1000, 1)
end

function spell1_25863(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25863', 3000, 1)
end

function Sorts_25863(pUnit, Event)
local choix_sorts_25863 = math.random(0, 1)
if choix_sorts_25863 == 0 then
pUnit:RegisterEvent('spell0_25863', 1, 1)
end
if choix_sorts_25863 == 1 then
pUnit:RegisterEvent('spell1_25863', 1, 1)
end
end

function mob25863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25863', math.random(1500, 3000), 1)
end

function mob25863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25863, 1, 'mob25863_Action')
RegisterUnitEvent(25863, 2, 'mob25863_Leave')
RegisterUnitEvent(25863, 3, 'mob25863_Kill')
RegisterUnitEvent(25863, 4, 'mob25863_Die')
